<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wickr-crypto-c: src/wickrcrypto/include/wickrcrypto/key_exchange.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">wickr-crypto-c
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_92a70b6cc7e213c660915fdf1190028f.html">wickrcrypto</a></li><li class="navelem"><a class="el" href="dir_db4377ef08cfba82f5e7141624102360.html">include</a></li><li class="navelem"><a class="el" href="dir_2adb4122f2f58e588d09641dee9865e2.html">wickrcrypto</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">key_exchange.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright © 2012-2018 Wickr Inc.  All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This code is being released for EDUCATIONAL, ACADEMIC, AND CODE REVIEW PURPOSES</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * ONLY.  COMMERCIAL USE OF THE CODE IS EXPRESSLY PROHIBITED.  For additional details,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * please see LICENSE</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * THE CODE IS MADE AVAILABLE &quot;AS-IS&quot; AND WITHOUT ANY EXPRESS OR</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * IMPLIED GUARANTEES AS TO FITNESS, MERCHANTABILITY, NON-</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * INFRINGEMENT OR OTHERWISE. IT IS NOT BEING PROVIDED IN TRADE BUT ON</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * A VOLUNTARY BASIS ON BEHALF OF THE AUTHOR’S PART FOR THE BENEFIT</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * OF THE LICENSEE AND IS NOT MADE AVAILABLE FOR CONSUMER USE OR ANY</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * OTHER USE OUTSIDE THE TERMS OF THIS LICENSE. ANYONE ACCESSING THE</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * CODE SHOULD HAVE THE REQUISITE EXPERTISE TO SECURE THEIR SYSTEM</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * AND DEVICES AND TO ACCESS AND USE THE CODE FOR REVIEW PURPOSES</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * ONLY. LICENSEE BEARS THE RISK OF ACCESSING AND USING THE CODE. IN</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * PARTICULAR, AUTHOR BEARS NO LIABILITY FOR ANY INTERFERENCE WITH OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * ADVERSE EFFECT THAT MAY OCCUR AS A RESULT OF THE LICENSEE</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * ACCESSING AND/OR USING THE CODE ON LICENSEE’S SYSTEM.</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#ifndef key_exchange_h</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define key_exchange_h</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;buffer.h&quot;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;eckey.h&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;crypto_engine.h&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    </div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structwickr__key__exchange.html">   53</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__key__exchange.html">wickr_key_exchange</a> {</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structwickr__key__exchange.html#a744e71ef6676c78643646adf1693a4e5">   54</a></span>&#160;    <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__key__exchange.html#a744e71ef6676c78643646adf1693a4e5">exchange_id</a>;</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structwickr__key__exchange.html#abc0c1dbc866c150ffc275546b7e91e2d">   55</a></span>&#160;    uint64_t <a class="code" href="structwickr__key__exchange.html#abc0c1dbc866c150ffc275546b7e91e2d">key_id</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structwickr__key__exchange.html#ab8399c32f60a1efef3d92f6844db4b54">   56</a></span>&#160;    <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="structwickr__key__exchange.html#ab8399c32f60a1efef3d92f6844db4b54">exchange_ciphertext</a>;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;};</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__key__exchange.html">wickr_key_exchange</a> <a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a>;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *<a class="code" href="group__wickr__key__exchange.html#ga1b6944bcbf28bae1312189d44628de3c">wickr_key_exchange_create</a>(<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__key__exchange.html#a744e71ef6676c78643646adf1693a4e5">exchange_id</a>,</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                                                uint64_t <a class="code" href="structwickr__key__exchange.html#abc0c1dbc866c150ffc275546b7e91e2d">key_id</a>,</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                                                <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="structwickr__key__exchange.html#ab8399c32f60a1efef3d92f6844db4b54">exchange_ciphertext</a>);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    </div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *<a class="code" href="group__wickr__key__exchange.html#ga2235a7c168e3806aa1a71b5a5c8dee48">wickr_key_exchange_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *source);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__key__exchange.html#ga54b6481f8f4b61fb949bec17d47cd3de">wickr_key_exchange_destroy</a>(<a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> **exchange);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keyword">typedef</span> wickr_array_t wickr_exchange_array_t;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    </div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;wickr_exchange_array_t *<a class="code" href="group__wickr__key__exchange.html#ga907d700b76b748f80796b4404c7172c2">wickr_exchange_array_new</a>(uint32_t exchange_count);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__wickr__key__exchange.html#gad3c6687c07ae5e66efcbc55da0febd85">wickr_exchange_array_set_item</a>(wickr_exchange_array_t *array, uint32_t index, <a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *exchange);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *<a class="code" href="group__wickr__key__exchange.html#ga333510c3c7eeb8e33f94495de6bb122d">wickr_exchange_array_fetch_item</a>(wickr_exchange_array_t *array, uint32_t index);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;wickr_array_t *<a class="code" href="group__wickr__key__exchange.html#gacd04405337871aa3bcd550a051d778e1">wickr_exchange_array_copy</a>(wickr_exchange_array_t *array);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__key__exchange.html#gadc1e5f5836bc09c1d6b8d6203d02a0eb">wickr_exchange_array_destroy</a>(wickr_exchange_array_t **array);</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    </div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="structwickr__key__exchange__set.html">  169</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set</a> {</div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="structwickr__key__exchange__set.html#ac0b304b3014b3c7bfe181526c2f3fc37">  170</a></span>&#160;    <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *<a class="code" href="structwickr__key__exchange__set.html#ac0b304b3014b3c7bfe181526c2f3fc37">sender_pub</a>;</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="structwickr__key__exchange__set.html#a7e848df6178f2e384e56bfd1f9b6d3b4">  171</a></span>&#160;    wickr_exchange_array_t *<a class="code" href="structwickr__key__exchange__set.html#a7e848df6178f2e384e56bfd1f9b6d3b4">exchanges</a>;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;};</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set</a> <a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a>;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> *<a class="code" href="group__wickr__key__exchange__set.html#ga9d247f82fda4d9ad7cb6784cd591c90e">wickr_key_exchange_set_create</a>(<a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *<a class="code" href="structwickr__key__exchange__set.html#ac0b304b3014b3c7bfe181526c2f3fc37">sender_pub</a>, wickr_exchange_array_t *<a class="code" href="structwickr__key__exchange__set.html#a7e848df6178f2e384e56bfd1f9b6d3b4">exchanges</a>);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<a class="code" href="structwickr__key__exchange.html">wickr_key_exchange_t</a> *<a class="code" href="group__wickr__key__exchange__set.html#gae071583943c5c6abe8acc4bcfba032ba">wickr_key_exchange_set_find</a>(<span class="keyword">const</span> <a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> *exchange_set,</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                                                  <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *identifier);</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> *<a class="code" href="group__wickr__key__exchange__set.html#ga102baafda8804a97acc5e2a5bc6f7dba">wickr_key_exchange_set_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> *source);</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__key__exchange__set.html#gadaff24901ec60f83216c03c13bff3e2f">wickr_key_exchange_set_destroy</a>(<a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> **exchange_set);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__key__exchange__set.html#gaf31dcf7493d3eccd4b31b0ff2a79f536">wickr_key_exchange_set_serialize</a>(<span class="keyword">const</span> <a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> *exchange_set);</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> *<a class="code" href="group__wickr__key__exchange__set.html#gaec93a83e2f00a707caf371b340591324">wickr_key_exchange_set_create_from_buffer</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine,</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;                                                                    <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *buffer);</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    </div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="group__wickr__key__exchange__set.html#gae67dccec73422de186348b3552f9c17b">wickr_key_exchange_set_encrypt</a>(<span class="keyword">const</span> <a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> *exchange_set,</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                                                      <span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine,</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;                                                      <span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *header_key);</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<a class="code" href="structwickr__key__exchange__set.html">wickr_key_exchange_set_t</a> *<a class="code" href="group__wickr__key__exchange__set.html#ga398eef2370517ab8b12d35a2d2475c4e">wickr_key_exchange_set_create_from_cipher</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine,</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                                                                    <span class="keyword">const</span> <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *cipher_result,</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;                                                                    <span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *header_key);</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    </div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;}</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* key_exchange_h */</span><span class="preprocessor"></span></div><div class="ttc" id="structwickr__ec__key_html"><div class="ttname"><a href="structwickr__ec__key.html">wickr_ec_key</a></div><div class="ttdoc">Representation of public and private Elliptic Curve Keypair information as buffers.</div><div class="ttdef"><b>Definition:</b> eckey.h:90</div></div>
<div class="ttc" id="group__wickr__key__exchange_html_ga2235a7c168e3806aa1a71b5a5c8dee48"><div class="ttname"><a href="group__wickr__key__exchange.html#ga2235a7c168e3806aa1a71b5a5c8dee48">wickr_key_exchange_copy</a></div><div class="ttdeci">wickr_key_exchange_t * wickr_key_exchange_copy(const wickr_key_exchange_t *source)</div></div>
<div class="ttc" id="structwickr__key__exchange_html"><div class="ttname"><a href="structwickr__key__exchange.html">wickr_key_exchange</a></div><div class="ttdoc">Public key exchange protected data. After a shared secret is generated using a public key with identi...</div><div class="ttdef"><b>Definition:</b> key_exchange.h:53</div></div>
<div class="ttc" id="structwickr__key__exchange__set_html_ac0b304b3014b3c7bfe181526c2f3fc37"><div class="ttname"><a href="structwickr__key__exchange__set.html#ac0b304b3014b3c7bfe181526c2f3fc37">wickr_key_exchange_set::sender_pub</a></div><div class="ttdeci">wickr_ec_key_t * sender_pub</div><div class="ttdef"><b>Definition:</b> key_exchange.h:170</div></div>
<div class="ttc" id="structwickr__key__exchange_html_abc0c1dbc866c150ffc275546b7e91e2d"><div class="ttname"><a href="structwickr__key__exchange.html#abc0c1dbc866c150ffc275546b7e91e2d">wickr_key_exchange::key_id</a></div><div class="ttdeci">uint64_t key_id</div><div class="ttdef"><b>Definition:</b> key_exchange.h:55</div></div>
<div class="ttc" id="group__wickr__key__exchange_html_gad3c6687c07ae5e66efcbc55da0febd85"><div class="ttname"><a href="group__wickr__key__exchange.html#gad3c6687c07ae5e66efcbc55da0febd85">wickr_exchange_array_set_item</a></div><div class="ttdeci">bool wickr_exchange_array_set_item(wickr_exchange_array_t *array, uint32_t index, wickr_key_exchange_t *exchange)</div></div>
<div class="ttc" id="structwickr__buffer_html"><div class="ttname"><a href="structwickr__buffer.html">wickr_buffer</a></div><div class="ttdoc">Represents an array of bytes and the length of the allocation associated with those bytes.</div><div class="ttdef"><b>Definition:</b> buffer.h:51</div></div>
<div class="ttc" id="structwickr__key__exchange__set_html_a7e848df6178f2e384e56bfd1f9b6d3b4"><div class="ttname"><a href="structwickr__key__exchange__set.html#a7e848df6178f2e384e56bfd1f9b6d3b4">wickr_key_exchange_set::exchanges</a></div><div class="ttdeci">wickr_exchange_array_t * exchanges</div><div class="ttdef"><b>Definition:</b> key_exchange.h:171</div></div>
<div class="ttc" id="structwickr__key__exchange_html_a744e71ef6676c78643646adf1693a4e5"><div class="ttname"><a href="structwickr__key__exchange.html#a744e71ef6676c78643646adf1693a4e5">wickr_key_exchange::exchange_id</a></div><div class="ttdeci">wickr_buffer_t * exchange_id</div><div class="ttdef"><b>Definition:</b> key_exchange.h:54</div></div>
<div class="ttc" id="group__wickr__key__exchange__set_html_gadaff24901ec60f83216c03c13bff3e2f"><div class="ttname"><a href="group__wickr__key__exchange__set.html#gadaff24901ec60f83216c03c13bff3e2f">wickr_key_exchange_set_destroy</a></div><div class="ttdeci">void wickr_key_exchange_set_destroy(wickr_key_exchange_set_t **exchange_set)</div></div>
<div class="ttc" id="group__wickr__key__exchange__set_html_gaf31dcf7493d3eccd4b31b0ff2a79f536"><div class="ttname"><a href="group__wickr__key__exchange__set.html#gaf31dcf7493d3eccd4b31b0ff2a79f536">wickr_key_exchange_set_serialize</a></div><div class="ttdeci">wickr_buffer_t * wickr_key_exchange_set_serialize(const wickr_key_exchange_set_t *exchange_set)</div></div>
<div class="ttc" id="group__wickr__key__exchange__set_html_ga9d247f82fda4d9ad7cb6784cd591c90e"><div class="ttname"><a href="group__wickr__key__exchange__set.html#ga9d247f82fda4d9ad7cb6784cd591c90e">wickr_key_exchange_set_create</a></div><div class="ttdeci">wickr_key_exchange_set_t * wickr_key_exchange_set_create(wickr_ec_key_t *sender_pub, wickr_exchange_array_t *exchanges)</div></div>
<div class="ttc" id="structwickr__key__exchange__set_html"><div class="ttname"><a href="structwickr__key__exchange__set.html">wickr_key_exchange_set</a></div><div class="ttdoc">A collection of key exchanges for a set of recipients. The data protected inside 'exchange_ciphertext...</div><div class="ttdef"><b>Definition:</b> key_exchange.h:169</div></div>
<div class="ttc" id="group__wickr__key__exchange_html_ga54b6481f8f4b61fb949bec17d47cd3de"><div class="ttname"><a href="group__wickr__key__exchange.html#ga54b6481f8f4b61fb949bec17d47cd3de">wickr_key_exchange_destroy</a></div><div class="ttdeci">void wickr_key_exchange_destroy(wickr_key_exchange_t **exchange)</div></div>
<div class="ttc" id="structwickr__key__exchange_html_ab8399c32f60a1efef3d92f6844db4b54"><div class="ttname"><a href="structwickr__key__exchange.html#ab8399c32f60a1efef3d92f6844db4b54">wickr_key_exchange::exchange_ciphertext</a></div><div class="ttdeci">wickr_cipher_result_t * exchange_ciphertext</div><div class="ttdef"><b>Definition:</b> key_exchange.h:56</div></div>
<div class="ttc" id="group__wickr__key__exchange__set_html_gae67dccec73422de186348b3552f9c17b"><div class="ttname"><a href="group__wickr__key__exchange__set.html#gae67dccec73422de186348b3552f9c17b">wickr_key_exchange_set_encrypt</a></div><div class="ttdeci">wickr_cipher_result_t * wickr_key_exchange_set_encrypt(const wickr_key_exchange_set_t *exchange_set, const wickr_crypto_engine_t *engine, const wickr_cipher_key_t *header_key)</div></div>
<div class="ttc" id="group__wickr__key__exchange_html_gadc1e5f5836bc09c1d6b8d6203d02a0eb"><div class="ttname"><a href="group__wickr__key__exchange.html#gadc1e5f5836bc09c1d6b8d6203d02a0eb">wickr_exchange_array_destroy</a></div><div class="ttdeci">void wickr_exchange_array_destroy(wickr_exchange_array_t **array)</div></div>
<div class="ttc" id="group__wickr__key__exchange_html_gacd04405337871aa3bcd550a051d778e1"><div class="ttname"><a href="group__wickr__key__exchange.html#gacd04405337871aa3bcd550a051d778e1">wickr_exchange_array_copy</a></div><div class="ttdeci">wickr_array_t * wickr_exchange_array_copy(wickr_exchange_array_t *array)</div></div>
<div class="ttc" id="group__wickr__key__exchange__set_html_ga398eef2370517ab8b12d35a2d2475c4e"><div class="ttname"><a href="group__wickr__key__exchange__set.html#ga398eef2370517ab8b12d35a2d2475c4e">wickr_key_exchange_set_create_from_cipher</a></div><div class="ttdeci">wickr_key_exchange_set_t * wickr_key_exchange_set_create_from_cipher(const wickr_crypto_engine_t *engine, const wickr_cipher_result_t *cipher_result, const wickr_cipher_key_t *header_key)</div></div>
<div class="ttc" id="structwickr__cipher__result_html"><div class="ttname"><a href="structwickr__cipher__result.html">wickr_cipher_result</a></div><div class="ttdef"><b>Definition:</b> cipher.h:97</div></div>
<div class="ttc" id="group__wickr__key__exchange__set_html_ga102baafda8804a97acc5e2a5bc6f7dba"><div class="ttname"><a href="group__wickr__key__exchange__set.html#ga102baafda8804a97acc5e2a5bc6f7dba">wickr_key_exchange_set_copy</a></div><div class="ttdeci">wickr_key_exchange_set_t * wickr_key_exchange_set_copy(const wickr_key_exchange_set_t *source)</div></div>
<div class="ttc" id="group__wickr__key__exchange_html_ga1b6944bcbf28bae1312189d44628de3c"><div class="ttname"><a href="group__wickr__key__exchange.html#ga1b6944bcbf28bae1312189d44628de3c">wickr_key_exchange_create</a></div><div class="ttdeci">wickr_key_exchange_t * wickr_key_exchange_create(wickr_buffer_t *exchange_id, uint64_t key_id, wickr_cipher_result_t *exchange_ciphertext)</div></div>
<div class="ttc" id="group__wickr__key__exchange_html_ga333510c3c7eeb8e33f94495de6bb122d"><div class="ttname"><a href="group__wickr__key__exchange.html#ga333510c3c7eeb8e33f94495de6bb122d">wickr_exchange_array_fetch_item</a></div><div class="ttdeci">wickr_key_exchange_t * wickr_exchange_array_fetch_item(wickr_exchange_array_t *array, uint32_t index)</div></div>
<div class="ttc" id="structwickr__cipher__key_html"><div class="ttname"><a href="structwickr__cipher__key.html">wickr_cipher_key</a></div><div class="ttdef"><b>Definition:</b> cipher.h:189</div></div>
<div class="ttc" id="group__wickr__key__exchange__set_html_gaec93a83e2f00a707caf371b340591324"><div class="ttname"><a href="group__wickr__key__exchange__set.html#gaec93a83e2f00a707caf371b340591324">wickr_key_exchange_set_create_from_buffer</a></div><div class="ttdeci">wickr_key_exchange_set_t * wickr_key_exchange_set_create_from_buffer(const wickr_crypto_engine_t *engine, const wickr_buffer_t *buffer)</div></div>
<div class="ttc" id="group__wickr__key__exchange__set_html_gae071583943c5c6abe8acc4bcfba032ba"><div class="ttname"><a href="group__wickr__key__exchange__set.html#gae071583943c5c6abe8acc4bcfba032ba">wickr_key_exchange_set_find</a></div><div class="ttdeci">wickr_key_exchange_t * wickr_key_exchange_set_find(const wickr_key_exchange_set_t *exchange_set, const wickr_buffer_t *identifier)</div></div>
<div class="ttc" id="structwickr__crypto__engine_html"><div class="ttname"><a href="structwickr__crypto__engine.html">wickr_crypto_engine</a></div><div class="ttdoc">Interface to a set of cryptographic operations used throughout the library. Currently the default imp...</div><div class="ttdef"><b>Definition:</b> crypto_engine.h:53</div></div>
<div class="ttc" id="group__wickr__key__exchange_html_ga907d700b76b748f80796b4404c7172c2"><div class="ttname"><a href="group__wickr__key__exchange.html#ga907d700b76b748f80796b4404c7172c2">wickr_exchange_array_new</a></div><div class="ttdeci">wickr_exchange_array_t * wickr_exchange_array_new(uint32_t exchange_count)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
